<?php
/**注意此文档为UTF-8的编码.
 * Created on 2010-5-17
 *
 * @author EXT <isrn@qq.com>
 *
 */
$type_array =array(
		array('name'=>'textfield','value'=>'文本','param'=>'0','width'=>'300','height'=>'200','config'=>array(array('name'=>'width','type'=>'textfield','lable'=>'宽度'))),
		array('name'=>'datefield','value'=>'时间','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'format','type'=>'textfield','lable'=>'时间格式'))),
		array('name'=>'textarea','value'=>'文本域','param'=>'1','width'=>'300','height'=>'200','default'=>'{"height":"200"}','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'高度'))),
		array('name'=>'htmleditor','value'=>'文本编辑器','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'高度'))),
		array('name'=>'fckeditor','value'=>'高级文本编辑器','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'高度'))),
		array('name'=>'swfupload','value'=>'上传','param'=>'0','width'=>'300','height'=>'200','config'=>''),
		array('name'=>'combo','value'=>'静态下拉','param'=>'1','width'=>'400','height'=>'400'),
		array('name'=>'radiogroup','value'=>'单选','param'=>'1','width'=>'400','height'=>'400'),
		array('name'=>'checkboxgroup','value'=>'复选','param'=>'1','width'=>'400','height'=>'400'),
		array('name'=>'password','value'=>'密码','param'=>'1','width'=>'400','height'=>'120','config'=>array(array('name'=>'confirm','type'=>'checkbox','lable'=>'是否需要验证'))),
		array('name'=>'hidden','value'=>'隐藏域','param'=>'0','width'=>'300','height'=>'200','config'=>'')
 		);
//$fun_database = array(
//	'item_add'=>'var news=Ext.data.Record.create([{name:"id"},{name:"value"}]);function item_add(){Ext.MessageBox.prompt("请输入职位的名称","职位名称",function(_btn,_text){if(_btn=="ok"){var combo=Ext.getCmp("combo");combo.store.insert(0,new news({value:_text}));combo.setValue(_text);combo["selectItem"]=combo.store.getAt(0);}});}',
//	'item_edit'=>'function item_edit(){var combo=Ext.getCmp("combo");if(combo["selectItem"]!=null)Ext.MessageBox.prompt("请输入修改后的的名称","职位名称",function(_btn,_text){if(_btn=="ok"){combo["selectItem"].set("value",_text);combo.setValue(_text);}});}',
//	'item_del'=>'function item_del(){var combo=Ext.getCmp("combo");if(combo["selectItem"]!=null)Ext.MessageBox.confirm("请输入修改后的的名称","职位名称",function(_btn){if(_btn=="yes"){try{combo.store.remove(combo["selectItem"]);}catch(_err){}if(combo.store.getCount()){combo.setValue(combo.store.getAt(0).get("value"));combo["selectItem"]=combo.store.getAt(0);}else{combo.setValue("");combo["selectItem"]=null;}}});}',
//	'combo_submit'=>'function combo_submit(){var combo=Ext.getCmp("combo");alert(combo.store.getAt(1).get("value"));}'
//)
?>
